package com.zhl.web_hello_world;

@org.springframework.stereotype.Service
public class Service {

    public String work(int count){
        int i = 0;
        for(;i<count;i++)
        {
            User user = new User();
        }
        return"创建count："+count;

    }

    public String sleep(int sleep){

        try {
            Thread.sleep(sleep * 1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return"暂停sleep："+sleep;

    }
}
